#include<iostream>
using namespace std;



class shape
{
    friend class base;
public:
    shape(int len,int height)
    {
        this->height = height;
        this->len = len;
    }

    void print()
    {
        cout<<"len:"<<len<<" "<<"height:"<<height<<endl;
    }

private:
    int len;
    int height;
};

class base
{
public:
    void view(shape& a)
    {
        cout<<a.len<<" "<<a.height;
    }
};

int main()
{
    shape a(1,2);
    base b;
    a.print();
    b.view(a);
}